Sample internetwork dependency management scenarios
About this task
This section provides sample scenarios describing how you can manage internetwork dependency in production using the conman command line commands.
Assuming that you have already defined the following:
- A local workstation called local1
- A job stream defined for the local workstation local1 called sched1
- A job defined in local1#sched1 called job1
- A network agent called netagt defined in the local network to manage internetwork dependency from jobs and job streams defined in the remote network.
- A workstation in the remote network called remote1
- A job stream defined for the remote workstation remote1 called rcshed
- A job in defined in remote1#rsched called rjob
- Adding an internetwork dependency from a remote job to a local job.
- For example, to add the remote job rjob as an internetwork dependency for job1, run the following command:
adj local1#sched1.job1;follows=netagt::remote1#rsched.rjob
- Adding an internetwork dependency from a remote job stream to a local job stream.
- For example, to add the remote job stream rsched as an internetwork dependency for job stream sched1, run the following command:
ads local1#sched1;follows=netagt::remote1#rsched
- Cancelling internetwork dependencies managed by a network agent.
- For example, to cancel all EXTERNAL jobs for a network agent netagt, run one of the following two commands:
cj netagt#EXTERNAL.@ cj netagt::@
- Confirming the successful completion of an internetwork dependency.
- For example, to confirm that the remote job remote1#rsched.rjob completed successfully and so release the corresponding internetwork dependency, run the following command:
confirm netagt::remote1#rsched.rjob;succ
- Deleting an internetwork dependency from a job for a job.
- For example, to delete the internetwork dependency from the remote job remote1#rsched.rjob for the local job local1#sched1.job1, run the following command:
ddj local1#sched1.job1;follows=netagt::remote1#rsched.rjob
- Deleting an internetwork dependency from a job for a job stream.
- For example, to delete the internetwork dependency from the remote job remote1#rsched.rjob for the local job stream local1#sched1, run the following command:
dds local1#sched1;follows=netagt::remote1#rsched.rjob
- Releasing a local job from an internetwork dependency from a remote job.
- For example, to release a job from an internetwork dependency from a remote job, run the following command:
rj local1#sched1.job1;follows=netagt::remote1#rsched.rjob
- Releasing a local job stream from an internetwork dependency from a remote job.
- For example, to release a job stream from an internetwork dependency from a remote job, run the following command:
rs local1#sched1;follows=netagt::remote1#rsched.rjob
- Rerunning a job in the EXTERNAL job stream to restart checking a dependency.
- For example, to rerun a job belonging to the EXTERNAL job stream to restart checking the internetwork dependency from the remote job remote1#rsched.rjob, run one of the following two commands:
rr netagt#EXTERNAL.rjob rr netagt::remote1#rsched.rjob
- Displaying internetwork dependencies from jobs and job streams defined in a remote network.
- For example, to display all the internetwork dependencies defined for a network agent with their original names and their generated job names, run the following command:
sj netagt#EXTERNAL.@;info
- Submitting a job with an internetwork dependency from a job stream defined in a remote network
- For example, to submit a rm command into the JOBS job stream with an internetwork dependency on a remote job stream, run the following command:
sbd "rm apfile";follows=netagt::remote1#rsched