2008-02-13 13:54:06 +00:00
=head1 NAME
B<getmacs> - Collects node MAC address.
=head1 SYNOPSIS
I<getmacs [-h| --help]>
I<getmacs [-v| --version]>
2008-06-23 16:47:49 +00:00
I<getmacs [-V| --verbose] noderange> [-f][-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.
2008-06-04 19:57:32 +00:00
Note than 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).
2008-02-13 13:54:06 +00:00
=head1 OPTIONS
B<-C> IP address of the partition.
2008-04-21 13:22:39 +00:00
B<-d> Display MAC only. The default is to write the first adapter MAC to the xCAT database.
2008-06-23 16:47:49 +00:00
B<-f> Force immediate shutdown of the partition.
2008-02-13 13:54:06 +00:00
B<-G> Gateway IP address of the partition specified with the -C option.
B<-h> Display usage message.
B<-S> The IP address of the machine to ping.
B<-v> Command Version.
B<-V> Verbose output.
=head1 RETURN VALUE
0 The command completed successfully.
1 An error has occurred.
=head1 EXAMPLES
2008-04-21 13:22:39 +00:00
1. To retrieve the MAC address for the HMC-managed partition lpar4 and write the first adapter MAC to the xCAT database, enter:
2008-02-13 13:54:06 +00:00
I<getmacs lpar4>
Output is similar to:
lpar4:
#Type Location Code MAC Address Full Path Name Ping Result
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 virtual
2008-02-13 13:54:06 +00:00
2008-06-04 19:57:32 +00:00
2. 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-06-04 19:57:32 +00:00
I<getmacs lpar4 -d>
2008-02-13 13:54:06 +00:00
Output is similar to:
lpar4:
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 8ee2245cf004 /vdevice/l-lan@30000004 virtual
2008-02-13 13:54:06 +00:00
2008-06-04 19:57:32 +00:00
3. 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
2008-06-04 19:57:32 +00:00
I<getmacs lpar4 -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
/opt/xcat/bin/getmac
=head1 NOTES
This command is part of the xCAT software product.
2008-03-19 18:01:56 +00:00
2008-04-21 13:22:39 +00:00
2008-06-04 19:57:32 +00:00