- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to get data for multiple PPA at once
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2010 12:12 AM
05-17-2010 12:12 AM
how to get data for multiple PPA at once
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2010 12:21 AM
05-17-2010 12:21 AM
Re: how to get data for multiple PPA at once
do
echo " lanadmin -g mibstats $i "
lanadmin -g mibstats $i
done
Gudluck
Prasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2010 12:34 AM
05-17-2010 12:34 AM
Re: how to get data for multiple PPA at once
If you are using HP-UX 11.31, lanadmin(1M),
lanscan(1M) and linkloop(1M) commands
are getting obsolete (still available but
not meant to be used any more).
Instead of lanadmin, use this for example:
# nwmgr -g -c lan0 --st mib
*** lan0 64 bit MIB statistics:
Interface Name = lan0
PPA Number = 0
Description = lan0 HP PCI-X 1000Base-T Release B.11.31.1003
Interface Type = 1000Base-T
MTU Size = 1500
Speed = 100 Mbps
Station Address = 0x0014C265A5BA
Administration Status = UP
Operation Status = UP
Last Change = Mon May 17 09:04:12 2010
Inbound Octets = 8573870
Inbound Unicast Packets = 15985
Inbound Multicast Packets = 0
Inbound Broadcast Packets = 46299
Inbound Discards = 0
Inbound Errors = 0
Inbound Unknown Protocols = 211
Outbound Octets = 15486980
Outbound Unicast Packets = 67016
Outbound Multicast Packets = 5
Outbound Broadcast Packets = 132
Outbound Discards = 0
Outbound Errors = 0
Counter Discontinuity Time = Mon May 17 09:04:12 2010
Physical Promiscuous Mode = FALSE
Physical Connector Present = TRUE
Interface Alias =
Link Up/Down Trap Enable = Enabled
Or, if you want to get the report in a scriptable format, add option "--sc":
# nwmgr -g -c lan0 --st mib --sc
lan0#ifPPA#stats#0
lan0#ifDescr#stats#lan0 HP PCI-X 1000Base-T Release B.11.31.1003
lan0#ifType#stats#1000Base-T
lan0#ifMTU#stats#1500
lan0#ifSpeed#stats#100 Mbps
lan0#ifStationAddress#stats#0x0014C265A5BA
lan0#ifAdmin#stats#UP
lan0#ifOper#stats#UP
lan0#ifLastChange#stats#Mon May 17 09:04:12 2010
lan0#ifInOctets#stats#8580522
lan0#ifInUcastPkts#stats#16013
lan0#ifInMulticastPkts#stats#0
lan0#ifInBroadcastPkts#stats#46349
lan0#ifInDiscards#stats#0
lan0#ifInErrors#stats#0
lan0#ifInUnknownProtos#stats#211
lan0#ifOutOctets#stats#15491890
lan0#ifOutUcastPkts#stats#67051
lan0#ifOutMulticastPkts#stats#5
lan0#ifOutBroadcastPkts#stats#132
lan0#ifOutDiscards#stats#0
lan0#ifOutErrors#stats#0
lan0#ifCounterDiscontinuityTime#stats#Mon May 17 09:04:12 2010
lan0#ifPromiscuousMode#stats#FALSE
lan0#ifConnectorPresent#stats#TRUE
lan0#ifAlias#stats#
lan0#ifLinkUpDownTrapEnable#stats#Enabled
Cheers,
VK2COT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2010 12:54 AM
05-17-2010 12:54 AM
Re: how to get data for multiple PPA at once
for i in $(lanscan -p)
do
echo " Mibstats of LAN ID : $i"
lanadmin -g mibstats $i
done
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2010 01:29 AM
05-17-2010 01:29 AM
Re: how to get data for multiple PPA at once
You can do this much simpler:
for i in 0 1 2 3 4 5; do