2008-02-13 13:54:06 +00:00
=head1 NAME
2008-08-02 16:18:07 +00:00
B<getmacs> - Collects node MAC address.
2008-02-13 13:54:06 +00:00
=head1 SYNOPSIS
2008-08-02 16:18:07 +00:00
2008-02-13 13:54:06 +00:00
I<getmacs [-h| --help]>
I<getmacs [-v| --version]>
2009-06-05 09:06:07 +00:00
I<getmacs noderange> [-F filter]
2009-07-19 16:27:29 +00:00
I<getmacs [-V| --verbose] noderange> [-f][-d] [--arp] | [-D [-S server] [-G gateway] [-C client]]
2008-02-13 13:54:06 +00:00
=head1 DESCRIPTION
The getmacs command collects MAC address from a single or range of nodes.
2009-04-14 03:30:26 +00:00
Note that on AIX systems, the returned MAC address is not colon-seperated (for example 8ee2245cf004), while on Linux systems the MAC address is colon-seperated (for example 8e:e2:24:5c:f0:04).
2009-04-14 08:03:02 +00:00
If no ping test performed, getmacs writes the first adapter MAC to the xCAT database. If ping test performed, getmacs will write the first successfully pinged MAC to xCAT database.
2008-02-13 13:54:06 +00:00
=head1 OPTIONS
2009-07-19 16:27:29 +00:00
B<--arp> Read MAC address with ARP protocal.
2009-04-14 03:30:26 +00:00
B<-C> Specify the IP address of the partition for ping test. The default is to read from xCAT database if no -C specified.
2008-02-13 13:54:06 +00:00
2008-10-20 09:10:31 +00:00
B<-d> Display MAC only. The default is to write the first valid adapter MAC to the xCAT database.
2008-04-21 13:22:39 +00:00
2009-07-19 16:27:29 +00:00
B<-D> Perform ping test. Please be notified that in this way, the lpars will be reset.
2009-04-14 03:30:26 +00:00
2008-06-23 16:47:49 +00:00
B<-f> Force immediate shutdown of the partition.
2009-06-05 09:06:07 +00:00
B<-F> Specify filters to select the correct adapter. Acceptable filters are Type,MAC_Address,Phys_Port_Loc,Adapter,Port_Group,Phys_Port,Logical_Port,VLan,VSwitch,Curr_Conn_Speed.
2009-04-14 03:30:26 +00:00
B<-G> Gateway IP address of the partition. The default is to read from xCAT database if no -G specified.
2008-02-13 13:54:06 +00:00
B<-h> Display usage message.
2009-04-14 03:30:26 +00:00
B<-S> The IP address of the machine to ping. The default is to read from xCAT databse if no -S specified.
2008-02-13 13:54:06 +00:00
2008-08-02 16:18:07 +00:00
B<-v> Command Version.
2008-02-13 13:54:06 +00:00
2008-08-02 16:18:07 +00:00
B<-V> Verbose output.
2008-02-13 13:54:06 +00:00
=head1 RETURN VALUE
0 The command completed successfully.
2008-08-02 16:18:07 +00:00
2008-02-13 13:54:06 +00:00
1 An error has occurred.
=head1 EXAMPLES
2008-10-20 09:10:31 +00:00
1. To retrieve the MAC address for the HMC-managed partition lpar4 and write the first valid adapter MAC to the xCAT database, enter:
2008-02-13 13:54:06 +00:00
2008-08-02 16:18:07 +00:00
I<getmacs lpar4>
2008-02-13 13:54:06 +00:00
Output is similar to:
2009-06-05 09:06:07 +00:00
# Type MAC_Address Phys_Port_Loc Adapter Port_Group Phys_Port Logical_Port VLan VSwitch Curr_Conn_Speed
2008-08-02 16:18:07 +00:00
lpar4:
2008-02-13 13:54:06 +00:00
2009-06-05 09:06:07 +00:00
#Type MAC_Address Phys_Port_Loc Adapter Port_Group Phys_Port Logical_Port VLan VSwitch Curr_Conn_Speed
hea 7607DFB07F02 N/A N/A N/A N/A N/A 1 ETHERNET0 N/A
2008-02-13 13:54:06 +00:00
2009-06-05 09:06:07 +00:00
ent U78A1.001.99203B5-P1-T6 00145eb55788 /lhea@23c00614/ethernet@23e00514 unsuccessful physical
2008-02-13 13:54:06 +00:00
2009-07-19 16:27:29 +00:00
2. To retrieve the MAC address with ARP protocal:
I<getmacs lpar4 --arp>
Output is similar to:
lpar4:
#IP MAC_Address
192.168.0.10 00145eb55788
2008-02-13 13:54:06 +00:00
2009-07-19 16:27:29 +00:00
3. To retrieve the MAC address for the HMC-managed partition lpar4 and display the result only, enter:
2008-02-13 13:54:06 +00:00
2008-08-02 16:18:07 +00:00
I<getmacs lpar4 -d>
2008-02-13 13:54:06 +00:00
Output is similar to:
2008-08-02 16:18:07 +00:00
lpar4:
2008-02-13 13:54:06 +00:00
2009-06-05 09:06:07 +00:00
#Type MAC_Address Phys_Port_Loc Adapter Port_Group Phys_Port Logical_Port VLan VSwitch Curr_Conn_Speed
hea 7607DFB07F02 N/A N/A N/A N/A N/A 1 ETHERNET0 N/A
ent U78A1.001.99203B5-P1-T6 00145eb55788 /lhea@23c00614/ethernet@23e00514 unsuccessful physical
2009-07-19 16:27:29 +00:00
4. To retrieve the MAC address for the HMC-managed partition lpar4 with filter Type=hea,VSwitch=ETHERNET0.
2009-06-05 09:06:07 +00:00
I<getmacs lpar4 -F Type=hea,VSwitch=ETHERNET0>
Output is similar to:
lpar4:
#Type MAC_Address Phys_Port_Loc Adapter Port_Group Phys_Port Logical_Port VLan VSwitch Curr_Conn_Speed
2008-02-13 13:54:06 +00:00
2009-06-05 09:06:07 +00:00
hea 7607DFB07F02 N/A N/A N/A N/A N/A 1 ETHERNET0 N/A
2008-02-13 13:54:06 +00:00
2009-07-19 16:27:29 +00:00
5. To retrieve the MAC address while performing a ping test for the HMC-managed partition lpar4 and display the result only, enter:
2008-02-13 13:54:06 +00:00
2009-04-14 03:30:26 +00:00
I<getmacs lpar4 -d -D -S 9.3.6.49 -G 9.3.6.1 -C 9.3.6.234>
2008-02-13 13:54:06 +00:00
2008-06-04 19:57:32 +00:00
#Type Location Code MAC Address Full Path Name Ping Result
2008-02-13 13:54:06 +00:00
2008-06-04 19:57:32 +00:00
ent U9133.55A.10B7D1G-V12-C4-T1 8e:e2:24:5c:f0:04 /vdevice/l-lan@30000004 successful virtual
2008-02-13 13:54:06 +00:00
=head1 FILES
2008-08-02 16:18:07 +00:00
/opt/xcat/bin/getmacs
2008-02-13 13:54:06 +00:00
2008-08-02 16:18:07 +00:00
=head1 SEE ALSO
2008-02-13 13:54:06 +00:00
2008-08-02 16:18:07 +00:00
L<makedhcp(8)|makedhcp.8>
2008-02-13 13:54:06 +00:00
2008-03-19 18:01:56 +00:00
2008-04-21 13:22:39 +00:00
2008-06-04 19:57:32 +00:00