Ocsinve...etworks(3)

🌸 NAME 🌸

okay so bestie, welcome to OCSInventory::Agent::Backend::OS::Linux::Network::Networks β€” it's the network-y functions module, and honestly it's giving "I do all the networking homework and nobody thanks me". πŸ’… It lives in the User Contributed Perl Documentation, section 3 of the manual, and yes the header truncated the name to Ocsinve...etworks(3) because apparently even manpage headers get cut off mid-sentence. 😭

✨ DESCRIPTION ✨

Literally what it says on the tin: this module retrieves network information. That's the whole vibe. It goes out, it grabs the network deets, it comes back. No cap. πŸ¦‹


πŸŽ€ FUNCTIONS πŸŽ€

here's the whole squad, one by one, no skips, no "you can figure out the rest" energy β€” we're doing all of them. 🫢

getSpeed

Returns the speed of the card. 🏎️

getDuplex

Returns the duplex state of the card.

getMTU

Returns the mtu of the card.

getStatus

Returns the status of the card.

getMAC

Returns the mac address. πŸ‘‘

getSubnetAddress($address, $mask)

Returns the subnet address for IPv4.

getSubnetAddressIPv6($address, $mask)

Returns the subnet address for IPv6.

getIPNetmask($prefix)

Returns the network mask for IPv4.

getIPNetmaskV6($prefix)

Returns the network mask for IPv6.

getslaves

Returns if card has a bonding. (yes, all lowercase, that's its actual name, respect the lowercase era πŸ™ˆ)

getIPRoute

Returns the gateway defined in the ip config.

getRouteIfconfig

Returns the gateway defined in the ip config. β€” and yeah, the original doc literally says "int he ip config" in the other one, which is iconic in a cursed way. We're not fixing it. We're just noting it. πŸ’€

isSameNetwork

Returns true if both addresses belong to the same network, for IPv4.

isSameNetworkIPv6

Returns true if both addresses belong to the same network, for IPv6.


😭 POD ERRORS 😭

not the doc dragging itself, but here we are. The original says, and I quote the vibe: "Hey! The above document had some coding errors, which are explained below" β€” and the error is:

Around line 979: =back without =over

like, the =back showed up to a party with no =over to back it up. awk. πŸ’€


sign-off ✨ this little masterpiece was rendered by perl v5.32.1 on 2026-06-05, and the header/footer both kept trying to spell Ocsinve...etworks(3) at us, which β€” slay, honestly. go get those network deets, bestie. πŸ¦‹πŸ’–πŸŽ€

πŸ“¦ where this page comes from