Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

Previous Previous     Contents     Index     Next Next

ProcedureHow to Display Current Parameter Settings in the Configuration File

You can use the mipagentconfig get command to display current settings that are associated with parameter destinations.

  1. Become superuser on the system where you are enabling Mobile IP.

  2. On a command line, type the following command for each parameter for which you want to display settings.

    # mipagentconfig get [<parameter> | <label>] 

For example, if you are displaying the advertisement settings for the le0 device, use the following command.

# mipagentconfig get adv le0

This command causes the following results to be displayed (for example).

[Advertisements le0]
   HomeAgent = yes
   ForeignAgent = yes

The following example shows the results of using the mipagentconfig get command with other parameter destinations.


Example 24-9 Using the mipagentconfig get Command

# mipagentconfig get MaxClockSkew
      [GlobalSecurityParameters]
         MaxClockSkew=300

# mipagentconfig get HA-FAauth
      [GlobalSecurityParameters]
         HA-FAauth=no

# mipagentconfig get MN-FAauth
      [GlobalSecurityParameters]
         MN-FAauth=no

# mipagentconfig get Challenge
      [GlobalSecurityParameters]
         Challenge=no

# mipagentconfig get Pool 10
      [Pool 10]
         BaseAddress=192.168.1.1
         Size=100

# mipagentconfig get SPI 257
      [SPI 257]
         Key=11111111111111111111111111111111
         ReplayMethod=none

# mipagentconfig get SPI 258
      [SPI 258]
         Key=15111111111111111111111111111111
         ReplayMethod=none

# mipagentconfig get addr 10.1.1.1
      [Address 10.1.1.1]
         SPI=258
         Type=agent

# mipagentconfig get addr 192.168.1.200
      [Address 192.168.1.200]
         SPI=257
         Type=node

# mipagentconfig get addr 10.1.1.1
      [Address 10.1.1.1]
         Type=agent
         SPI=258
         IPsecRequest = apply {auth_algs md5 sa shared}
         IPsecReply = permit {auth_algs md5}
         IPsecTunnel = apply {encr_algs 3des sa shared}


Displaying Mobility Agent Status

You can use the mipagentstat command to display a foreign agent's visitors list and a home agent's binding table. Mobile IP Mobility Agent Status provides a conceptual description of the mipagentstat command. You can also review the mipagentstat(1M) man page.

ProcedureHow to Display Mobility Agent Status

  1. Become superuser on the system where you are enabling Mobile IP.

  2. On a command line, type the following command.

    # mipagentstat <option> 

    You can use the following options:

    -f

    Shows the list of active mobile nodes in the foreign agent's visitor list

    -h

    Shows the list of active mobile nodes in the home agent's binding table

    -p

    Shows the list of security associations with an agent's mobility agent peers

For example, to show the visitor list for all mobile nodes that are registered with the foreign agent, use the following command.

# mipagentstat -f

This command causes the following results to be displayed (for example).

Mobile Node     Home Agent     Time (s)     Time (s)  Flags
                               Granted      Remaining
--------------- -------------- ------------ --------- -----
foobar.xyz.com  ha1.xyz.com    600          125       .....T.
10.1.5.23       10.1.5.1       1000         10        .....T.

To show the foreign agent security associations, use the following command.

# mipagentstat -p

This command causes the following results to be displayed (for example).

Foreign                  ..... Security Association(s).....
Agent                    Requests Replies  FTunnel  RTunnel
----------------------   -------- -------- -------- --------
forn-agent.eng.sun.com   AH       AH       ESP      ESP

To show the home agent security associations, use the following command.

# mipagentstat -fp

This command causes the following results to be displayed (for example).

Home                     ..... Security Association(s) .....
Agent                    Requests Replies  FTunnel  RTunnel
----------------------   -------- -------- -------- --------
home-agent.eng.sun.com   AH       AH       ESP      ESP
ha1.xyz.com              AH,ESP   AH       AH,ESP   AH,ESP

Previous Previous     Contents     Index     Next Next