EIGRP and Distribute-list commands
I am reviewing one of our WAN routers, on an infrastructure I have recently inherated, and noted an EIGRP configuration which doesn't make much sense to me. I'm wondering if I misunderstand the intent. The WAN router has the following EIGRP configuration:
router eigrp 102
variance 4
redistribute connected
redistribute static
network 10.0.0.0
network 172.1.0.0
network 172.20.0.0
network 172.22.0.0
network 172.24.0.0
network 172.25.0.0
network 172.27.0.0
network 172.30.0.0
network 192.9.200.0
network 192.9.201.0
network 192.168.0.0
network 192.168.2.0
maximum-paths 2
default-metric 64 200 255 1 1500
distribute-list 20 out Serial3/0.41
distribute-list 20 out Serial3/0.76
distribute-list 20 out Serial3/0.100
distribute-list 20 out Serial3/0.104
distribute-list 20 out Serial3/0.106
distribute-list 20 out Serial3/0.107
distribute-list 20 out Serial3/0.111
distribute-list 20 out Serial3/0.112
distribute-list 20 out Serial3/0.113
distribute-list 20 out Serial3/0.117
distribute-list 20 out Serial3/0.118
distribute-list 20 out Serial3/0.131
distribute-list 20 out Serial3/0.170
distribute-list 20 out Serial3/0.175
distribute-list 20 out Serial3/0.186
distribute-list 20 out Serial3/0.190
distribute-list 20 out Serial3/0.191
distribute-list 20 out Serial3/0.198
distribute-list 20 out Serial3/0.199
distribute-list 20 out Serial3/0.205
distribute-list 20 out Serial3/0.210
distribute-list 20 out Serial3/0.226
distribute-list 20 out Serial3/0.251
distribute-list 20 out Serial3/0.621
distribute-list 20 out Serial3/0.629
distribute-list 20 out Serial3/0.637
distribute-list 20 out Serial3/0.647
distribute-list 20 out Serial3/0.658
distribute-list 20 out Serial3/0.663
distribute-list 20 out Serial3/0.677
distribute-list 20 out Serial3/0.696
distribute-list 20 out Serial3/0.700
distribute-list 20 out Serial3/0.719
distribute-list 20 out Serial3/0.733
distribute-list 20 out Serial3/0.762
distribute-list 20 out Serial3/0.763
distribute-list 20 out Serial3/0.771
distribute-list 20 out Serial3/0.772
distribute-list 20 out Serial3/0.776
distribute-list 20 out Serial3/0.783
distribute-list 20 out Serial3/0.801
distribute-list 20 out Serial3/0.803
distribute-list 20 out Serial3/0.810
distribute-list 20 out Serial3/0.822
distribute-list 20 out Serial3/0.830
distribute-list 20 out Serial3/0.832
distribute-list 20 out Serial3/0.853
distribute-list 20 out Serial3/0.855
distribute-list 20 out Serial3/0.880
distribute-list 20 out Serial3/0.915
distribute-list 20 out Serial3/0.1000
no auto-summary
eigrp log-neighbor-changes
However, access list 20 is constructed as follows:
access-list 20 permit 0.0.0.0
access-list 20 deny any
If you have a distribute-list statement within EIGRP but the ACL permits 0.0.0.0, does that make any incoming/outgoing updates passive in any way? The remote routers connected to the WAN have no passive/no passive configuration parameters. Only the core WAN routers do.
Please advise.
Marking a remote stub does not, today, restrict what routes are advertised to the stub router, they just limit the queries to the stub routers. So, you'd still need the hub side distribute list to block the routes out to the stubs. A distribute list doesn't block queries, by the way, it just limits knowledge of routing information, which impacts how far a query will go.... You should definitely make the remotes stubs to reduce the query range, in other words, even with this distribute list configured.
At any rate, there is a feature planned for the future to make it where you could turn on an option at the stub router to make the hub router automatically filter everything but the default out.
HTH....
Russ
Similar Messages
-
Distribute list on DMVPN spoke
Hi,
I would need to apply a distribute list on a DMVPN spoke and not sure if that DL needs to be applied at the tunnel interface or the physical interface where the tunnel is sourced. Please let me know if you have any thoughts.
This is how the configuration looks at other branches that do not have DMVPN configured:
access-list 1 deny 0.0.0.0
access-list 1 permit any
access-list 2 permit 0.0.0.0
access-list 2 deny any
router eigrp 1
distribute-list 2 in FastEthernet0/0
distribute-list 1 out FastEthernet0/0
Thanks,If you want to control your routing between the spoke and the hub, you have to apply it for the tunnel-interface. Or more general: With the interface that is enabled for the routing-protocol.
And you should look at the prefix-lists instead of distribute-lists. They are much more flexible once you get used to them.
http://www.cisco.com/en/US/partner/tech/tk365/technologies_q_and_a_item09186a008012dac4.shtml#fourteen
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni -
On Solaris 11, I analyzed the output returned by 'pkginfo' and 'pkg list' command. The packages listed looked different.
For example i tried to list GNU related packages with both these commands and got following output -
pkginfo | grep GNU
system SUNWa2psr a2ps - GNU Any to PostScript filter (root)
system SUNWa2psu a2ps - GNU Any to PostScript filter (usr)
system SUNWbash GNU Bourne-Again shell (bash)
system SUNWbashr GNU Bourne-Again shell (bash) (root)
system SUNWgawk gawk - GNU implementation of awk
system SUNWgcmn gcmn - Common GNU package
system SUNWggrp ggrep - GNU grep utilities
system SUNWgmake gmake - GNU make
system SUNWgnu-coreutils coreutils - GNU core utilities
system SUNWgnu-dbm GNU Database Manager
system SUNWgnu-diffutils GNU diffutils
GNOME2 SUNWgnu-findutils GNU utilities find and xargs
GNOME2 SUNWgnu-findutils-l10n GNU utilities find and xargs - l10n files
system SUNWgnu-mp The GNU Multiple Precision (Bignum) Library (4.3.2)
system SUNWgnu-nano GNU nano
system SUNWgnu-readline GNU readline
system SUNWgnu-which GNU which
system SUNWgpch The GNU Patch utility
GNOME2 SUNWgroff GNU roff Text Formatting
system SUNWgrub GNU GRUB - GNU GRand Unified Bootloader
system SUNWgsed gsed - GNU implementation of sed, the Unix stream editor
system SUNWgtar gtar - GNU tar
system SUNWgzip The GNU Zip (gzip) compression utility
system SUNWless The GNU pager (less)
system SUNWpppg GNU utilities for PPP
system SUNWscreen GNU Screen
system SUNWtexi GNU texinfo - Texinfo utilities (texinfo)
system SUNWwget wget - GNU wget
pkg list -s | grep GNU
archiver/gnu-tar GNU version of the tar archiving utility
developer/build/gnu-make A utility for directing compilation.
file/gnu-coreutils GNU Core Utilities
file/gnu-findutils GNU utilities find and xargs
system/prerequisite/gnu gcmn - Common GNU package
text/gnu-diffutils GNU diffutils
text/gnu-grep GNU grep utilities
text/gnu-patch The GNU Patch utility
text/gnu-sed gsed - GNU implementation of sed, the Unix stream editor
The output could be mean same information, but I am not sure if that is case.
Thanks in advance.Packages beginning by SUNW are for a very old Solaris release, before Solaris 11, but with some packages we still provide the pkginfo file in /var/sadm/pkg directory for backward compatibility.
Normally, you should use only the pkg command to list installed packages, excepted if you installed yourself SVR4 packages. -
Nexus: multiple ip distribute-list eigrp statements allowed ?
Hi,
I need to clarify if Nexus 7K (NX-Os 6.1(3) ) supports multiple "ip distribute-list eigrp" statements in interface configuration.
Currently, there is already one statement to only allow default GW (0.0.0.0) routing information be sent.
I need to allow a few more specific routes to be shared with the facing device.
Can i have several distribute-list statements on the same interface ?
Or it it mandatory to handle this at the ip prefix-list level with multiple allow/deny rules.
I'm in a situation where i want to ammend the configuration without modifying existing objects or have to removed those who turned unused.
According to Cisco general EIGRP documentation, multiple seems to be accepted.
However, GNS3 simulator with a 7200VXR show that the new statement replaces the former one !
Moreover, Nexus logic is often different and i didn't capture any clear statement for this in Nexus specific documentation.
Needless to says that I have no test plateforme and no possibility to test that for the moment.
If someone can confirm it's supported, i would appreciate.
ThxHi,
I don't have a setup where I can try to see if this actually has the effect you're after, but you can certainly apply more than one distribute-list to an interface.
N7K-2(config-if)# ip distribute-list eigrp DIST_LIST route-map FRED outN7K-2(config-if)# ip distribute-list eigrp DIST_LIST1 route-map FRED1 outN7K-2(config-if)# ip distribute-list eigrp DIST_LIST2 route-map FRED2 outN7K-2(config-if)# sh run int eth3/1!Command: show running-config interface Ethernet3/1!Time: Mon Feb 3 23:04:01 2014 version 5.2(1)interface Ethernet3/1 ip address 1.1.1.1/24 ip distribute-list eigrp DIST_LIST route-map FRED out ip distribute-list eigrp DIST_LIST1 route-map FRED1 out ip distribute-list eigrp DIST_LIST2 route-map FRED2 out no shutdown N7K-2(config-if)#
Regards -
Distribute list in Nexus 7K to allow only default route
Hi All,
We are about to migrate our core routers into two Nexus 7Ks with four VDCs each.
I was planning to permit only the default route (0.0.0.0) into the building aggregation switch (Cisco 6509). I planned to use distribute-list as I have done it in IOS and I could allow it through any specific interface I want.
Well, how do I do that in Nexus 7K? I don't see any distrubute list option. I can use prefix list, but then how do I specify the particular interface?
Many thanks in advance.
Mondal
CCIE #29034Well, I found my own answer!
Here is the command that goes on the Interface. I kept typing IP eigrp and hence did not get any option! Thanks for looking. You do offset-list the same way.
ip distribute-list eigrp Test1 route-map EigrpTest in -
Distribute-list with ripv2 problem
Hi All,
I want filter even routing table but it can't work on RIP v2
access-list 1 deny 192.168.0.0 0.0.254.255
access-list 1 permit any
router rip
version 2
distribute-list 1 out FastEthernet0/0
no auto-summary
It can't work.
It can work when I change access-list from "access-list 1 deny 192.168.0.0 0.0.254.255" to "access-list 1 deny 192.168.0.0 0.0.255.255".
But on EIGRP all ok
P.S. ip classless is enable
Thanks everybodyHi
R2 and R3 run RIPv2
I try the distribute-list on R3 to R2 is OK.
But I try distribute-list out to eigrp or interface and the access-list can't work.
If change to "access-list 1 permit 193.0.0.0 0.255.255.255" and it can work fine.
I can't understand on R2
"distribute-list 1 out eigrp 1
access-list 1 permit 193.0.0.0 0.254.255.255" ==> can't work
"distribute-list 1 out eigrp 1
access-list 1 permit 193.0.0.0 0.255.255.255" ==> work fine
Tks! -
Explanation about gateway in distribute-list?
Hi All
I have a question. Anyone can give me an explanation about distribute-list? What is meaning of "gateway" ? Thank you
ip prefix-list max24 seq 5 permit 0.0.0.0/0 ge 8 le 24
ip prefix-list allowlist seq5 permit 192.168.1.1/32
router rip
network 172.18.0.0
distribute-list prefix max24 gateway allowlist in
gateway prefix-list-name
(Optional) Name of the prefix list to be applied to the gateway of the prefix being updated.prefix-list is used generally when you want to control the routes(prefixes) that is being sent or received to neighbors in routing protocols like RIP,EIGRP,BGP, it can also be .for route tagging etc.
In prefix list for example
a.b.c.d/x ge y le z
x bits should always match in prefix while the subnets should be <= than (le) z and >=(ge) y
10.1.0.0/16 le 24 ge 16 will have 10.1.0.0/18 but no 10.1.1.127/25.
Distribute-list to used to suppress the routes either in inbound or outbound direction. Say from other end of eigrp neighbor router you are receiving x,y,z routes, but you want only x in your RIB. So you can deny route y and z. Similarly your router is advertising routes to its neighbor and you want to hide some routes from them, you can do so with help of distribute-list.
Gateway keyword is used to specify the neighbor from/to you are denying/sending routes. In simple term you have two RIP neighbors you want to send route only to one particular neighbor but not other one. -
ASA 8.2 Distribute-List Wildcards
If I were to use a distribute-list under an EIGRP process with a /19, would it inject /24 routes that fall within that scope? I know the "wildcard" concept does not work the same way on ASAs as it does on IOS Routers.
I think that you should actually configure a policy NAT that anyone coming from the 192.168.1.0/24 destine to the 10.2.2.0/24 should be translated to 10.1.1.254.
access-list VPN-POLICY-NAT permit ip 192.168.1.0 255.255.255.0 10.2.2.0 255.255.255.0
nat (ril) 2 access-list VPN-POLICY-NET outside
global (inside) 2 10.1.1.254
access-list policy_nat permit ip 10.2.2.0 255.255.255.0 192.168.1.0 255.255.255.0
static (inside,ril) 10.2.2.0 access-list policy_nat
Run the packet tracer and let me know if it works
Value our effort and rate the assistance! -
Distribute List Nexus 7000 / OSPF
I was trying to limit the routes that our ospf should learn, same on 6500 as "distribute-list".
It´s on a VRF.
on http://docwiki.cisco.com/wiki/Cisco_NX-OS/IOS_OSPF_Comparison it says that it isn´t possible.
Any ideas? Is it true? Should I use just redistribute list?
Thanks########UPDATE########
Since version 6.x Cisco added a feature called table-map.
It works like distributed lists and did what I needed. We are using it already. Info at link above:
http://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/6_x/nx-os/unicast/configuration/guide/l3_cli_nxos/l3_ospf.html#pgfId-1361896
Maybe it helps.
So to make configuration...
1) I need to make a prefix-list
ip prefix-list Filter_List_in seq 10 permit 10.20.30.40/32
ip prefix-list Filter_List_in seq 20 permit 10.30.20.26/32
ip prefix-list Filter_List_in seq 30 permit 10.40.30.20/32
2) Make a route map and use prefix-list.
route-map Permit_in permit 10
match ip address prefix-list Filter_List_in
3) And apply on ospf (show run).
router ospf 10
vrf VRFOSPF
router-id 10.0.0.21
network 10.20.208.21/32 area 0.0.0.0
redistribute static route-map RM_static
area 0.0.0.0 authentication message-digest
area 0.0.0.0 filter-list route-map Permit_in in
log-adjacency-changesrouter ospf 10
And clear neighbors. (IPs were changed)
When I use the show ip ospf policy... filter in... => no match
route-map Permit_in permit 10
match ip address prefix-list Filter_List_in C: 0 M: 0
Total accept count for policy: 0
Total reject count for policy: 0
I couldn´t figure why it isnt working.
I also tried to apply the filter list going to (config t --> vrf context VRFOSPF --> router ospf 10 --> and apply the filter list).
Any Ideas?
Edited:
"To filter prefixes advertised in type 3 link-state advertisements (LSAs) between Open Shortest Path First (OSPF) areas of an Area Border Router (ABR),"
"The NX-OS does support inter-area Type-3 LSA/route filtering using the filter-list command configured under the OSPF routing instance."
We will create a ABR on nexus to apply filter-list
Thanks for help. -
Why the step-and-repeat function (command+d) isn't working in Illustrator CS5?
Why the step-and-repeat function (command+d) isn't working in Illustrator CS5?
I am trying this. Take an object, move it some inches on the right while holding the option key, so I duplicate it.
Usually, I pressed on command+d to duplicate this action on and on (duplicate the object and moving it some inches away), but now it is not working.
any idea?kwakoo,
It may be time for the list:
The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
If possible/applicable, you should save current artwork first, of course.
1) Close down Illy and open again;
2) Restart the computer (you may do that up to at least 5 times);
3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible), for CS3 - CC you may find the folder here:
https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
Even more seriously, you may:
6) Uninstall (ticking the box to delete the preferences), run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
http://www.adobe.com/support/contact/cscleanertool.html -
Hi,
I upgraded to OS 10.9 Mavericks today. Everything seems fine thus far, except for Safari's bookmarks and reading list. Bizarrely, ONE of my old bookmarks was left on the bookmarks bar, while all other bookmarks (except those pre-loaded by Apple) and the entire reading list are wiped.
I'm aware of the path for finding the plist (~/Library/Safari/Bookmarks.plist) — however: Time Machine won't let me go back to before the OS X upgrade. The windows all backups before the upgrade are completely black. As far as I can tell, this goes for all files, not just those in the Library.
My browsing history was preserved. Also, I head iCloud enabled for Safari.
I'm stumped. Any suggestions?While in Time Machine, press the key combination shift-command-C. The front window will show all mounted volumes. All snapshots should now be accessible. Select the one you want and navigate to the files you want to restore.
-
EIGRP and Load Balacing Per Packet CEF required on both ends???
Here's what I have.
-2 T1's with same EIGRP metric
-CEF is enabled and load sharing currently
1 Link is being used more than the other due to nature of load sharing and not per packet using CEF.
I need per packet setup to see if this improves performance and distributes the usage over both links effectively.
If I enable per-packet on my remote office, do I also have to enable it on each PVC that connects back to my central office per PVC. Or can you enable per packet on the remote location only and be ok? I dont have control over central office router and need to justify if I need to enable that on the Central office or not.
Cisco docs I reviewed on this doesn't say both ends.I agree with Sundar's point about needing to configure both ends if you want to use per packet in each direction. His point about the implications of forcing process switching and its impact on CPU utilization of the router is true but I am not sure that is what the original post was asking about. As I understood the original post he was asking about the per-packet option available with CEF switching which does not produce process switched packets.
I have one caution to offer about turning on the per-packet option with CEF. If you do that you will probably get better - but still not even - balancing of the serial links. But the performance may not improve. In fact it may degrade. This is because doing per packet balancing introduces the liklihood of out of order packets. The impact of out of order packets varies depending on the application being run and the impact of out of order packets. Many applications when they get an out of order packet will discard the packet and retransmit packets to get them in the correct order. I actually know of one customer site where they enabled per packet balancing and the performance of the application got worse. So I suggest that you evaluate carefully the implications of per packet balancing.
HTH
Rick -
ASCII Mode Connection & FTP LIST command
Hi All,
I want to realize a simple Java FTP Client. At the beginning I tought to write a dir/file listing method, but I have no less difficulties to do it.
As RFC says LIST is the appropriate command to be implemented.
As I read RFC I should to open an ASCII Mode Connection but I don't know How.
Connecting some ftp Server and sending it a "LIST" command I receive these replyes:
331 User name okay, need password.
230 User logged in, proceed.
150 Opening ASCII mode data connection for /bin/ls.
426 Data connection closed, transfer aborted.
So, after 150 I should receive directory content, but it doesn't work. On the other side, if I want to send "HELP" command, using readLine() method I can display all reply from server.
How can I make directory listing for my FTP Client?
Thanks a lot...I prefer fireftp, but yea thats what I use to do any sort of ftp with the crio. At the time I was testing it I was able to log onto the ftp server of the crio, list directory and do get and put operations. Good to hear its working fine for you though.
Looks like the device is having problems now (has become completely unresponsive) and is deployed 350 miles from here so we have some new problems to deal with. Maybe it was the device, I am not sure but I guess this is on hold until the device is back up.
[will work for kudos] -
I want to know if it is possible to re-direct the output of the list command in rman to an external file. reason beeing that in rman, when ai issue the command rman> list backup summary, I get a hell of infos (as mai db is arround 1.2T and we have approx 2 yrs of data kept!) and cant scroll to see all the infos.
is there a link that gives all the options used with the list command???
Any kinda help with be appreciated.
DIDthanks for the option! really forgot about the log option!
wanna ask if its possible to backup a single archivelog out of many?
the command backup archivelog backs up everythng! say ai want to backup only sequence 100??
DID -
Need To Get Folder and Subfolders List
Hi All
I have a requirement which will give me the list of folder and subfolders list for a given path. I can achieve this using xp_cmdshell.
But it is admin level usage. So i need to get with the use SP_OAMethod using file system object.
Please help me to do the same.Hello Amarnath, Finally i have the code that you are looking for.
SELECT * FROM dbo.dir('c:\testfolder') WHERE IsFolder =1
--------------- USER DEFINE FUNCTION
CREATE FUNCTION [dbo].[Dir](@Wildcard VARCHAR(8000))
RETURNS @MyDir TABLE
-- columns returned by the function
[name] VARCHAR(2000), --the name of the filesystem object
[path] VARCHAR(2000), --Contains the item's full path and name.
[ModifyDate] DATETIME, --the time it was last modified
[IsFileSystem] INT, --1 if it is part of the file system
[IsFolder] INT, --1 if it is a folsdder otherwise 0
[error] VARCHAR(2000) --if an error occured, gives the error otherwise null
AS
-- body of the function
BEGIN
DECLARE
--all the objects used
@objShellApplication INT,
@objFolder INT,
@objItem INT,
@objErrorObject INT,
@objFolderItems INT,
--potential error message shows where error occurred.
@strErrorMessage VARCHAR(1000),
--command sent to OLE automation
@Command VARCHAR(1000),
@hr INT, --OLE result (0 if OK)
@count INT,@ii INT,
@name VARCHAR(2000),--the name of the current item
@path VARCHAR(2000),--the path of the current item
@ModifyDate DATETIME,--the date the current item last modified
@IsFileSystem INT, --1 if the current item is part of the file system
@IsFolder INT --1 if the current item is a file
IF LEN(COALESCE(@Wildcard,''))<2
RETURN
SELECT @strErrorMessage = 'opening the Shell Application Object'
EXECUTE @hr = sp_OACreate 'Shell.Application',
@objShellApplication OUT
--now we get the folder.
IF @HR = 0
SELECT @objErrorObject = @objShellApplication,
@strErrorMessage = 'Getting Folder"' + @wildcard + '"',
@command = 'NameSpace("'+@wildcard+'")'
IF @HR = 0
EXECUTE @hr = sp_OAMethod @objShellApplication, @command,
@objFolder OUT
IF @objFolder IS NULL RETURN --nothing there. Sod the error message
--and then the number of objects in the folder
SELECT @objErrorObject = @objFolder,
@strErrorMessage = 'Getting count of Folder items in "' + @wildcard + '"',
@command = 'Items.Count'
IF @HR = 0
EXECUTE @hr = sp_OAMethod @objfolder, @command,
@count OUT
IF @HR = 0 --now get the FolderItems collection
SELECT @objErrorObject = @objFolder,
@strErrorMessage = ' getting folderitems',
@command='items()'
IF @HR = 0
EXECUTE @hr = sp_OAMethod @objFolder,
@command, @objFolderItems OUTPUT
SELECT @ii = 0
WHILE @hr = 0 AND @ii< @count --iterate through the FolderItems collection
BEGIN
IF @HR = 0
SELECT @objErrorObject = @objFolderItems,
@strErrorMessage = ' getting folder item '
+ CAST(@ii AS VARCHAR(5)),
@command='item(' + CAST(@ii AS VARCHAR(5))+')'
--@Command='GetDetailsOf('+ cast(@ii as varchar(5))+',1)'
IF @HR = 0
EXECUTE @hr = sp_OAMethod @objFolderItems,
@command, @objItem OUTPUT
IF @HR = 0
SELECT @objErrorObject = @objItem,
@strErrorMessage = ' getting folder item properties'
+ CAST(@ii AS VARCHAR(5))
IF @HR = 0
EXECUTE @hr = sp_OAMethod @objItem,
'path', @path OUTPUT
IF @HR = 0
EXECUTE @hr = sp_OAMethod @objItem,
'name', @name OUTPUT
IF @HR = 0
EXECUTE @hr = sp_OAMethod @objItem,
'ModifyDate', @ModifyDate OUTPUT
IF @HR = 0
EXECUTE @hr = sp_OAMethod @objItem,
'IsFileSystem', @IsFileSystem OUTPUT
IF @HR = 0
EXECUTE @hr = sp_OAMethod @objItem,
'IsFolder', @IsFolder OUTPUT
--and insert the properties into a table
INSERT INTO @MyDir ([NAME], [path], ModifyDate, IsFileSystem, IsFolder)
SELECT @NAME, @path, @ModifyDate, @IsFileSystem, @IsFolder
IF @HR = 0 EXECUTE sp_OADestroy @objItem
SELECT @ii=@ii+1
END
IF @hr <> 0
BEGIN
DECLARE @Source VARCHAR(255),
@Description VARCHAR(255),
@Helpfile VARCHAR(255),
@HelpID INT
EXECUTE sp_OAGetErrorInfo @objErrorObject, @source OUTPUT,
@Description OUTPUT, @Helpfile OUTPUT, @HelpID OUTPUT
SELECT @strErrorMessage = 'Error whilst '
+ COALESCE(@strErrorMessage, 'doing something') + ', '
+ COALESCE(@Description, '')
INSERT INTO @MyDir(error) SELECT LEFT(@strErrorMessage,2000)
END
EXECUTE sp_OADestroy @objFolder
EXECUTE sp_OADestroy @objShellApplication
RETURN
END---- OUTPUT
Regards, RSingh
Maybe you are looking for
-
My iTunes 11.0 (mac) has a black background colour and I can not see all of the information for each song. How do I change the background colour in iTunes 11.0 (mac) so I can see check boxes etc. My download window shows no information, it is ent
-
Hi I'm using Bluetooth Mouse with my Macbook Pro. It's so wired, sometimes when I click the right button but it is the purpose of the left button, and sometimes it's right that click the right button and that's the right button purpose. How does that
-
REG:BACKGROUND SCHEDULING
Hi experts, I have one BDC PROGRAM is there. In that program the error files are stored in separately. That files are automatically go to the particular lotus maiid through email. For this requirement anyother provisions are there otherwise anyother
-
I have a mapping that compiles but produces a run-time error: BATCH MERGE ORA-00918: column ambigiously defined I've traced it to this section of the code: MERGE INTO "GXP_LOCATION" USING (SELECT /*+ NO_MERGE*/ <snip> FROM "DW_GXP_LOCATIONS"@"GPDW" "
-
Actions calling methods?
Alright, so what you see below is a piece of my attempt to pop up a gui after having parsed a word file. In this word file, there are variables being defined, and i am trying to use this code to replace some of the variables that have been hard coded